public class Test {
    //字符串变整形
    public  static void main1(String[] args) {
        int a = 123;
        String str=a+"";
        System.out.println(str);
        System.out.println("==========");
        String str2 = String.valueOf(a);
        System.out.println(str2);

    }
    //字符串变成整形
    public static void main2(String[] args) {
        String str = "123";
        int a = Integer.parseInt(str);
        System.out.println(a+1);

    }
    public static void main(String[] args) {
        System.out.println("hello word");

    }
}